package com.hava.film.timeline.xmeml.v5.entity;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

import java.util.List;
import java.util.ArrayList;

@JacksonXmlRootElement(localName = "metadata")
public class Metadata {

    //一个或者多个元素
    @JacksonXmlProperty(localName = "storage")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<String> storage = new ArrayList<String>();

    //一个或者多个元素
    @JacksonXmlProperty(localName = "key")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<String> key = new ArrayList<String>();

    //一个或者多个元素
    @JacksonXmlProperty(localName = "updatebehavior")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<String> updatebehavior = new ArrayList<String>();

    //一个或者多个元素
    @JacksonXmlProperty(localName = "size")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<String> size = new ArrayList<String>();

    //一个或者多个元素
    @JacksonXmlProperty(localName = "type")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<String> type = new ArrayList<String>();

    //一个或者多个元素
    @JacksonXmlProperty(localName = "value")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<Value> value = new ArrayList<Value>();

}
